
public class MathDemo2 {

	public static void main(String[] args) {
		int x = -2,y=1;
		if(x>0) {
			y=2*x+1;
		}else {
			y=x+5;
		System.out.println("x="+x);
		System.out.println("y="+y);

	}
}
}
